﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace WindowsFormsApplication1.wtyczki
{
    static class Mirror
    {
        public static Bitmap horizontal(Bitmap bm)
        {
            Bitmap bmTmp = new Bitmap(bm);
            for (int y = 1; y < bm.Height; y++)
            {
                for (int x = 1; x < bm.Width/2; x++)
                {
                    bmTmp.SetPixel(bm.Width-x, y, bm.GetPixel(x, y));
                }
            }
            return bmTmp;
        }

        public static Bitmap vertical(Bitmap bm)
        {
            Bitmap bmTmp = new Bitmap(bm);
            for (int y = 1; y < bm.Height/2; y++)
            {
                for (int x = 1; x < bm.Width; x++)
                {
                    bmTmp.SetPixel(x,bm.Height- y, bm.GetPixel(x, y));
                }
            }
            return bmTmp;
        }
    }
}
